package com.mq.service.impl;

import com.mq.Mapper.TravelRecommendationsMapper;
import com.mq.service.TravelRecommendationsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;
@Service
public class TravelRecommendationsServiceimlp implements TravelRecommendationsService {
    @Autowired
    TravelRecommendationsMapper travelRecommendationsMapper;
    @Override
    public List<Map<String, Object>> getTravelRecommendationsList(Integer page, Integer count) {
        int offset = (page - 1) * count; // 计算偏移量
        return travelRecommendationsMapper.getTravelRecommendationsList(offset,count);
    }
}
